#! /bin/env python
#-*- coding: utf-8 -*-

"""
=Heading1=
==Heading2==
===Heading3===

*bold*     _italic_
`inline code`
escape: `*`

Indent lists 2 spaces:
  * bullet item
  # numbered list

{{{
verbatim code block
}}}

Horizontal rule
----

WikiWordLink
[http://domain/page label]
http://domain/page

|| table || cells ||
"""

states = []
def wiki2html(wiki):
    while True:
        char = getchar(wiki)
        if char is None:
            break
        if char


